package com.bristua.user.controller;
import com.bristua.common.bean.Result;
import com.bristua.common.utils.HandleResultUtil;
import com.bristua.user.biz.QueryUserCashFlowBiz;
import com.bristua.user.model.condition.QueryUserCashFlowParams;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/3.
 */
@RestController
@Api(value="现金流水",tags={"现金流水"})
public class QueryUserCashFlowController {

    @Autowired
    private QueryUserCashFlowBiz queryUserCashFlowBiz;
    @ApiOperation(value="现金流水")
    @PostMapping(value="/admin/user/cash/flow/query")
    public Result queryUserCashFlow(@RequestBody QueryUserCashFlowParams queryUserCashFlowParams){
        return HandleResultUtil.querySuccessResult(queryUserCashFlowBiz.queryUserCashFlow(queryUserCashFlowParams));
    }
}
